package cn.drenal.capcap.entity.vo.forum;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 评论VO，用于前端展示
 */
@Data
public class CommentVO {
    private Long id;
    
    private Long artworkId;
    
    private Long userId;
    
    private String content;
    
    private Long parentId;
    
    private Long replyUserId;
    
    private Integer likeCount;
    
    private Integer status;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    // 用户信息
    private String username;
    private String userAvatar;
    
    // 被回复用户信息
    private String replyUsername;
    
    // 回复列表
    private List<CommentVO> replies;
}